home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / dir.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  2.9 KB  |  136 lines

  1. DIR
  2.  
  3. Displays a sorted list of the files in a directory.
  4.  
  5. Format
  6.  
  7. DIR [<dir | pattern>] [OPT A | I | AI | D | F] [ALL] [DIRS] [FILES] [INTER]
  8.  
  9. Template
  10.  
  11. DIR,OPT/K,ALL/S,DIRS/S,FILES/S,INTER/S
  12.  
  13. Location
  14.  
  15. C:
  16.  
  17. DIR displays the file and directory names contained in the specified
  18. directory or the current directory. Directories are listed first, followed by
  19. an alphabetical list of the files in two columns. Pressing Ctrl+C aborts a
  20. directory listing.
  21.  
  22. The options are:
  23.  
  24. ALL
  25.  
  26. Displays all subdirectories and their files.
  27.  
  28. DIRS
  29.  
  30. Displays only directories.
  31.  
  32. FILES
  33.  
  34. Displays only files.
  35.  
  36. INTER
  37.  
  38. Enters an interactive listing mode.
  39.  
  40. The ALL, DIRS, FILES, and INTER keywords supersede the OPT A, D, F, and I
  41. options, respectively. The older keywords are retained for compatibility with
  42. earlier versions of AmigaDOS. Do not use OPT with the full keywords - ALL,
  43. DIRS, FILES, or INTER.
  44.  
  45. Interactive listing mode stops after each name to display a question mark at
  46. which you can enter commands. The acceptable responses are shown below:
  47.  
  48. Press Return
  49.  
  50. Displays the next name on the list.
  51.  
  52. E
  53.  
  54. Enters a directory; the files in that directory are displayed.
  55.  
  56. B
  57.  
  58. Goes back one directory level.
  59.  
  60. DEL or DELETE
  61.  
  62. Deletes a file or empty directory. DEL does not refer to the Del key; enter
  63. the letters D, E, and L.
  64.  
  65. T
  66.  
  67. Types the contents of a file.
  68.  
  69. C or COMMAND
  70.  
  71. Allows you to enter additional AmigaDOS commands.
  72.  
  73. Q
  74.  
  75. Quits interactive editing.
  76.  
  77. ?
  78.  
  79. Displays a list of the available interactive-mode commands.
  80.  
  81. The COMMAND option allows almost any AmigaDOS command to be executed during
  82. the interactive directory list. To issue a command, enter C (or COMMAND) at
  83. the question mark prompt. DIR asks you for the command. Enter the desired
  84. command, then press Return. The command is executed and DIR continues. You
  85. can also combine the C and the command on one line by putting the command in
  86. quotation marks following the C.
  87.  
  88. For example,
  89.  
  90. ? C "type prefs.info hex"
  91.  
  92. is equivalent to pressing Q to exit interactive listing mode and return to a
  93. regular Shell prompt, then entering:
  94.  
  95. 1> TYPE Prefs.info HEX
  96.  
  97. to display the Prefs.info file on the screen in hexadecimal format.
  98.  
  99. Formatting a disk from the DIR interactive mode is not recommended since the
  100. format takes place immediately, without any confirmation requesters
  101. appearing. Do not start another interactive DIR from interactive mode since
  102. it results in garbled output.
  103.  
  104. Example 1:
  105.  
  106. 1> DIR Workbench:
  107.  
  108. displays a list of the directories and files on the Workbench disk.
  109.  
  110. Example 2:
  111.  
  112. 1> DIR MyDisk:#?.memo
  113.  
  114. displays all the directories and files on MyDisk that end in .memo.
  115.  
  116. Example 3:
  117.  
  118. 1> DIR Extras: ALL
  119.  
  120. displays the complete contents of the Extras drawer: all directories, all
  121. subdirectories, and all files, including those in the subdirectories.
  122.  
  123. Example 4:
  124.  
  125. 1> DIR Workbench: DIRS
  126.  
  127. displays only the directories on Workbench.
  128.  
  129. Example 5:
  130.  
  131. 1> DIR Workbench: INTER
  132.  
  133. begins an interactive list of the contents of the Workbench disk.
  134.  
  135. For more examples using DIR, see Chapter 8.
  136.